<?php

namespace Action\User;

class Rss extends \Library\Action\UserAction 
	implements \Library\Action\AjaxAction {

	private $_user = null;
	private $_rss = null;


	public function getUserId() {
		return $this->getParam( 'id' );
	}
	
	public function getUser() {
		if( $this->_user === null ) {
			$this->_user = \Bean\User::get( $this->getUserId() );
		}
		return $this->_user;
	}

	public function getRss() {
		if( $this->_rss === null ) {
			$this->_rss = new \Bean\Flow\FeedFlow( _u(), array(
				new \Bean\Flow\RssFlow( 'http://www.pcinpact.com/include/news.xml' )
			) );
		}
		return $this->_rss;
	}

}
